
{[include file="emp/emp/_view.tpl"]}

<fieldset><legend>入职信息</legend>
<table>
	<tr align="center">
		<th width="40">序号</th>
		<th>应聘途径</th>
		<th>入职日期</th>
		<th>在职时间</th>

		<th>离职日期</th>
		<th>任职时间</th>
	</tr>
	{[foreach name=outer key=key item=item from=$job]} {[assign var="no" value="`$key+$pager->from+1`"]}
	<tr align="center" onMouseOver="this.style.backgroundColor='#D2E4FC'" onMouseOut="this.style.backgroundColor=''">
		<td>{[$no]}</td>

		<td>{[$item.name]}</td>
		<td>{[$item.t1]}</td>
		<td>{[$item.d1]}</td>

		<td>{[$item.t2]}</td>
		<td>{[$item.d2]}</td>
	</tr>
	{[/foreach]}
</table>
</fieldset>

<fieldset><legend>离职信息</legend>
<form id="form_edit"><input type="hidden" name="id" value="{[$smarty.request.id]}" />
<table>
	<tr>
		<td width="20%" align="right">离职日期：</td>
		<td width="80%"><input type="text" name="t2" id="t2" value="{[$smarty.now|date_format:'%Y-%m-%d']}" size="12"></td>
	</tr>
	<tr>
		<td align="right">离职原因：</td>
		<td><textarea rows="2" name="content" cols="42"></textarea></td>
	</tr>
</table>
</form>
</fieldset>

<script type="text/javascript" src="js/emp/emp/leave.js?r={[$smarty.now]}"></script>
